package com.wx.gof.pattern.behavioral.responsibility;

import java.math.BigDecimal;

/**
 * @ClassName Handler
 * @Author wx
 * @Description 抽象处理者
 * @Date 2018-12-16-16:48
 */
public abstract class Handler {
    protected Handler handler;

    /**
     * @methodName: setHandler
     * @author: wx
     * @description: 设置下个处理对象
     * @param handler
     * @date: 2018/12/16
     * @return: void
     */
    public void setHandler(Handler handler) {
        this.handler = handler;
    }
    
    /**
     * @methodName: handleFeeRequest
     * @author: wx
     * @description: 处理用餐金额方法
     * @param fee
     * @date: 2018/12/16
     * @return: java.lang.String
     */
    abstract String handleFeeRequest(Double fee);
}
